package com.ruoyi.attachment.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 附件对象 attachment
 *
 * @author ruoyi
 * @date 2022-05-18
 */
public class Attachment{
    private static final long serialVersionUID = 1L;

    /**
     * 附件ID
     */
    private Long attachmentId;

    /**
     * 附件类型(1:佐证材料)
     */
    @Excel(name = "附件类型(1:佐证材料)")
    private String attachmentType;

    /**
     * 对应业务表ID
     */
    @Excel(name = "对应业务表ID")
    private String infoId;

    /**
     * 对应业务表表名
     */
    @Excel(name = "对应业务表表名")
    private String tableName;

    /**
     * 对应业务表明细Id
     */
    @Excel(name = "对应业务表明细Id")
    private String infoDetailId;

    /**
     * 初始文件名称
     */
    @Excel(name = "初始文件名称")
    private String initialAttachmentName;

    /**
     * 附件名称
     */
    @Excel(name = "附件名称")
    private String attachmentName;

    /**
     * 附件url
     */
    @Excel(name = "附件url")
    private String attachmentUrl;

    /**
     * 创建人
     */
    @Excel(name = "创建人")
    private Long createUser;

    /**
     * 创建时间
     */
    @Excel(name = "创建人")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;

    public void setAttachmentId(Long attachmentId) {
        this.attachmentId = attachmentId;
    }

    public Long getAttachmentId() {
        return attachmentId;
    }

    public void setAttachmentType(String attachmentType) {
        this.attachmentType = attachmentType;
    }

    public String getAttachmentType() {
        return attachmentType;
    }

    public void setInfoId(String infoId) {
        this.infoId = infoId;
    }

    public String getInfoId() {
        return infoId;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getTableName() {
        return tableName;
    }

    public void setInitialAttachmentName(String initialAttachmentName) {
        this.initialAttachmentName = initialAttachmentName;
    }

    public String getInitialAttachmentName() {
        return initialAttachmentName;
    }

    public void setAttachmentName(String attachmentName) {
        this.attachmentName = attachmentName;
    }

    public String getAttachmentName() {
        return attachmentName;
    }

    public void setAttachmentUrl(String attachmentUrl) {
        this.attachmentUrl = attachmentUrl;
    }

    public String getAttachmentUrl() {
        return attachmentUrl;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Long getCreateUser() {
        return createUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("attachmentId", getAttachmentId())
                .append("attachmentType", getAttachmentType())
                .append("infoId", getInfoId())
                .append("tableName", getTableName())
                .append("initialAttachmentName", getInitialAttachmentName())
                .append("attachmentName", getAttachmentName())
                .append("attachmentUrl", getAttachmentUrl())
                .append("remark", getRemark())
                .append("createUser", getCreateUser())
                .append("createTime", getCreateTime())
                .toString();
    }

    public String getInfoDetailId() {
        return infoDetailId;
    }

    public void setInfoDetailId(String infoDetailId) {
        this.infoDetailId = infoDetailId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
